<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
	<meta charset="UTF-8">
	<link rel="stylesheet" href="css/bootstrap.min.css"/>
	<title>凯盛项目管理系统</title>
	<style type="text/css">
		body{
			background-image:url(img/bg10.jpg);
		}
	</style>
</head>
<body class="body"> 
	<%@ include file="include/top.jsp" %>
	
	<div class="container" style="padding-top:50px;">
		<div class="row">

			
			<jsp:include page="include/side.jsp">
				<jsp:param value="project" name="tag"/>
			</jsp:include>

			
			<div class="span6">
				<ul class="breadcrumb" style="margin-bottom:0px">
					<li><i class="icon-th"></i>你在想什么</li>
				</ul>
				
				<div class="wall" style="border: 1px solid #DDDDDD;">
					<form style="margin:15px" action="project.jspx?m=publish" method="post">
						<textarea name="textarea" id="" cols="30" rows="4" style="width:415px"></textarea>
						<input type="submit" class="btn btn-primary" value="发布">
					</form>
				</div>
				
				<ul class="breadcrumb" style="margin-bottom:0px;margin-top:5px">
					<li><i class="icon-th"></i>信息流</li>
				</ul>
				
				<div class="wall" style="border: 1px solid #DDDDDD;height:315px;">
					
						<c:forEach items="${page.result }" var="message">
							<div class="span1" style="margin-left:10px;margin-top:10px">
								<img alt="" src="${message.user.pic }">
							</div>
							<div class="span4">
								<h1 style="font-size:15px">${message.user.username }</h1>
								${message.content }<br/>
								<div class="pull-right">发布于:${message.showTimeString }</div>
								<hr/>
							</div>
						</c:forEach>
				</div>
				
				<div class="pagination pull-right" style="margin-top:0px">
				  <ul>
				  	<c:choose>
				  		<c:when test="${page.pageNum == 1 }">
				  			<li><a href="">首页</a></li>
				  		</c:when>
				  		<c:otherwise>
				  			<li><a href="project.jspx?id=${userpro.proId }&p=1">首页</a></li>	
				  		</c:otherwise>
				  	</c:choose>
					
					<c:choose>
						<c:when test="${page.pageNum == 1 }">
							<li><a href="#">上一页</a></li>
						</c:when>
						<c:otherwise>
							<li><a href="project.jspx?id=${userpro.proId }&p=${page.pageNum - 1 }">上一页</a></li>		
						</c:otherwise>
					</c:choose>
					
					<c:choose>
						<c:when test="${page.pageNum == page.totalPages }">
							<li><a href="#">下一页</a></li>
						</c:when>
						<c:otherwise>
							<li><a href="project.jspx?id=${userpro.proId }&p=${page.pageNum + 1 }">下一页</a></li>		
						</c:otherwise>
					</c:choose>
					
					<c:choose>
						<c:when test="${page.pageNum == page.totalPages }">
							<li><a href="#">尾页</a></li>
						</c:when>
						<c:otherwise>
							<li><a href="project.jspx?id=${userpro.proId }&p=${page.totalPages }">尾页</a></li>
						</c:otherwise>
					</c:choose>
					
				  </ul>
				</div>
			</div>
			
			<div class="span3">
				<div class="box">
					<div class="head">我的任务</div>
					<ul>
						<li><a href=""></a>任务1</li>
						<li><a href=""></a>任务1</li>
						<li><a href=""></a>任务1</li>
					</ul>
				</div>					
			</div>
		</div>
	</div>
	
</body>
</html>